package com.whf.android.jar.constants;

import androidx.annotation.StringDef;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * 网络请求常量
 *
 * @author qf
 * @version 2020/4/22
 */
public final class HttpConstant {

    /*** 请求返回代码*/
    public static final String CODE = "code";

    /*** 请求返回内容*/
    public static final String DATA = "data";

    /*** 提示*/
    public static final String MSG = "msg";

    /*** 提示*/
    public static final String MESSAGE = "message";

    /*** 总条数*/
    public static final String TOTAL = "total";

    /*** 内容*/
    public static final String RECORDS = "records";

    /*** 内容*/
    public static final String LIST = "list";

    /*** 每页条数*/
    public static final String SIZE = "size";

    @StringDef({CODE, DATA, MSG, MESSAGE,
            TOTAL, RECORDS, LIST, SIZE})
    @Retention(RetentionPolicy.SOURCE)
    public @interface Http {

    }
}
